home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-09-17 | 2.6 KB | 99 lines | [TEXT/MPS ] |
- # Full build script for Symantec 68K
- #
- # SC68KBuildAll [Debug|Release] [Clean] [ODFLibrary] [NoExamples]
- #
- # [Debug|Release] : debug or release build. Debug by default
- # [Clean] : Will delete all cpp.o files
- # [ODFLibrary] : Will only build the ODFLibrary
- # [NoExamples] : Will not build the ODF examples
- #
- # This script assumes that you have placed UserStartup•ODF in your MPW folder.
- #
- # NOTE: The CyberStarter example is not currently built due to a lack of native
- # C++ exception handling which is required. However, you can build this example
- # Metrowerks CodeWarrior compiler.
-
- if "{ODF}" == ""
- Beep
- Beep
- Echo "### SC68KBuildAll"
- Echo "### You have not installed the 'UserStartup•ODF' file (or 'UserStartupTS•ODF' for ToolServer)."
- Echo "### Please do so before continuing. Those files are located in the 'Getting Started'"
- Echo "### folder. Don't forget to relaunch MPW (or ToolServer)."
- exit
- end
-
- Set TheBuild ""
- Set Clean 0
- Set Examples 1
- Set StaticLib 1
-
- For item in {Parameters}
- if {item} == Debug
- Set TheBuild "Debug"
- else if {item} == debug
- Set TheBuild "Debug"
- else if {item} == Release
- Set TheBuild Release
- else if {item} == release
- Set TheBuild Release
- else if {item} == Clean
- Set Clean 1
- else if {item} == clean
- Set Clean 1
- else if {item} == ODFLibrary
- Set StaticLib 0
- Set Examples 0
- else if {item} == odflibrary
- Set StaticLib 0
- Set Examples 0
- else if {item} == NoExamples
- Set Examples 0
- else if {item} == noexamples
- Set Examples 0
- else if {item} == Noexamples
- Set Examples 0
- else
- Echo "SC68KBuildAll [Debug|Release] [Clean] [ODFLibrary] [NoExamples]"
- Exit
- end
- End
-
- if {TheBuild} == ""
- Set TheBuild Debug
- end
-
- Set Exit 0
- if {Clean} == 1
- Echo "# `Date -t` ----- Cleaning 68K object files."
- Delete -y `Files -f -s "{ODF}SL68K{TheBuild}:Obj:" ≥≥ Dev:NULL` ≥≥ Dev:NULL
- Delete -y `Files -f -s "{ODF}SC68K{TheBuild}:Obj:" ≥≥ Dev:NULL` ≥≥ Dev:NULL
- if {Examples} == 1
- For example In ColorExtension Bitmap Button Clock Container Draw Embed Form Hello Nothing Table ViewTester
- Delete -y `Files -f -s "{ODFDev}{example}:SC68K{TheBuild}:Obj:" ≥≥ Dev:NULL` ≥≥ Dev:NULL
- End
- End
- End
-
- Set Exit 1
-
- Echo "# `Date -t` ----- Starting 68K build."
-
- # ----- Build ODF Shared Library
- "{ODF}SL68K{TheBuild}:Build"
-
- # ----- Build ODF Static Libraries
- if {StaticLib} == 1
- "{ODF}SC68K{TheBuild}:Build"
- End
-
- # ----- Build ODF Samples
- if {Examples} == 1
- For example In ColorExtension Bitmap Button Clock Container Draw Embed Form Hello Nothing Table ViewTester
- "{ODFDev}{example}:SC68K{TheBuild}:Build"
- End
- End
-
- Echo "# `Date -t` ----- Finished 68K build."
-
-